package com.admin.thread;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.admin.dao.AdminSpCpDao;
import com.admin.service.AdminSpService;

@Service
public class StartUpService {
	
	@Autowired private AdminSpCpDao adminSpCpDao;
	@Autowired private AdminSpService adminSpDao;
	
	@PostConstruct
	public void deal(){
		System.out.println("thread start");
		//DayStatThread dayThread = new DayStatThread(adminSpCpDao,adminSpDao);
		//HourStatThread hourThread = new HourStatThread(adminSpCpDao,adminSpDao);
		DayIvrStatThread dayIvrThread = new DayIvrStatThread(adminSpCpDao,adminSpDao);
		HourIvrStatThread hourIvrThread = new HourIvrStatThread(adminSpCpDao,adminSpDao);
		//dayThread.start();
		dayIvrThread.start();
		//hourThread.start();
		hourIvrThread.start();

	}
}
